var app = new Vue({
	el: '#app',
	mixins:[isLogin],
	components:{
		navs:nav,
		footers:footer,
		login:login,
	},
	data: {
		bgImg:'img/PCindex/top3.jpg',
		eduDetailData:'',//教育详情数据
		navState:'增值空间',
	},
	methods: {
		//获取详情数据
		getEduDetail:function(){
			var _this = this;
			var method = 'EduTrain/GetPageDetail';
			var id = xq.getQueryString('id');
			var param = {
				ID:id
			};
			xq.getUrl(method, param, function(res) {
				if(res.data) {
					var data = res.data;
					data.CreateDate = xq.getYMDHM(data.CreateDate,'yy/mm/dd');
					data.TrainStartDate = xq.getYMDHM(data.TrainStartDate,'yy/mm/dd');
					data.TrainEndDate = xq.getYMDHM(data.TrainEndDate,'yy/mm/dd');
					data.StartData = xq.getYMDHM(data.StartData,'yy/mm/dd');
					data.EndData = xq.getYMDHM(data.EndData,'yy/mm/dd');
					_this.eduDetailData = data;
				}
			})
		},	
	},
	mounted: function() {
		this.getEduDetail();
	},
	updated: function() {

	}
})